﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainFrame.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GPMS.Model.ProjectPlan>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    计划管理
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>计划管理</h2>

<table id="tableplanlist2">
    <tr>
        <th>操作</th>
        <th>
            计划内容
        </th>
        <th>
            开始时间
        </th>
        <th>
            结束时间
        </th>
        <th>
            是否完成
        </th>
        <th>
            最终完成时间
        </th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.ActionLink("修改", "Edit", new { id=item.PlanID}, new { @class = "dialog" })%> |
            <%: Html.ActionLink("删除", "Delete", new { id = item.PlanID }, new { @class = "dialog" })%>
        </td>
        <td>
            <%: item.Description %>
        </td>
        <td>
            <%: String.Format("{0:g}", item.BeginDate) %>
        </td>
        <td>
            <%: String.Format("{0:g}", item.FinishDate) %>
        </td>
        <td>
            <%: item.IsDone %>
        </td>
        <td>
            <%: String.Format("{0:g}", item.RealFinishDate) %>
        </td>
    </tr>  
<% } %>

</table>

<p>
    <%: Html.ActionLink("返回", "List", "GraduationProject",null,null)%>
</p>
<script type="text/javascript">
    $(function () {
        tableToGrid($("#tableplanlist2"), { width: 640, height: 480 });
        InitDialogLink($("a.dialog"), $("#dialogPanel"));
    });
</script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
	<link href="<%=Url.Content("~/Content/css/ui.jqgrid.css") %>" rel="Stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=Url.Content("~/Scripts/i18n/grid.locale-cn.js") %>"></script>
	<script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery.jqGrid.min.js") %>"></script>
      <style type="text/css">
        body{ background:white; }
    </style>
</asp:Content>

